package com.htd.htdapmservice.mybatis;

import com.htd.htdapmcommon.mybatis.DalBaseMyBatis;
import com.htd.htdapmdmo.OneAlertFilterKey;
import com.htd.htdapmservice.dao.OneAlertFilterKeyDao;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class OneAlertFilterKeyMapper extends DalBaseMyBatis<OneAlertFilterKey> implements OneAlertFilterKeyDao {

    @Override
    public List<OneAlertFilterKey> findOneAlertFilterKeyListByType(String filterType) {
        return this.sqlSessionTemplate.selectList(this.getEntityName() + ".queryDataByType",filterType);
    }

    @Override
    public List<OneAlertFilterKey> findOneAlertFilterKeyList() {
        return this.sqlSessionTemplate.selectList(this.getEntityName() + ".queryData");
    }
}